package sqlwriter.data;

public enum SQL_TYPE
{
	SQLite("SQLite", ".sqlite", new ConnectionSQLite()), SQLCE("SQLCE", ".sdf", new ConnectionSQLCE());

	private String	name;
	private String	extension;
	private Connection connection;
	
	SQL_TYPE(String name, String extension, Connection connection)
	{
		this.name = name;
		this.extension = extension;
		this.connection = connection;
	}

	public String getName()
	{
		return this.name;
	}
	
	public String getConnectionString(Database database)
	{
		return connection.toString(database);
	}
}
